package tcu.iot.gasmanage.entity.equipment;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Equipment {
    //数据库设备信息数据
    private int id;
    private String equipmentNumber;
    private String equipmentName;
    private String equipmentType;
    private float signalStrength;
    private float electricQuantity;
    private String state;
    private String uploadFrequency;
    private String province;
    private String region;
    private String site;
    private String pipeline;
    private String management;
    private String principal;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private String additionTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private String patrolInspectionTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private String onlineTime;

    //private String SIMNumber;

    private String remark;

    private String lat;
    private String lng;
}
